from typing import List

from pydantic import BaseModel
from geoalchemy2 import Geometry,WKTElement,WKBElement
import datetime



class UserBase(BaseModel):
    email: str
    phone:str


class UserCreate(UserBase):
    hashed_password: str


class User(UserCreate):
    id: int
    borth:datetime.date
    sex:str
    is_Infected:bool
    addressgeom:WKBElement
    workgeom:WKBElement
    temeprature:float
    issmoke:bool
    height:int
    weight:float
    riskrank:float

    class Config:
        orm_mode = True
        arbitrary_types_allowed = True

# class UserUpdate(UserCreate):
#     borth:datetime.date=None
#     sex:str=None
#     is_Infected:bool=None
#     addressgeom:WKBElement=None
#     workgeom:WKBElement=None
#     temeprature:float=None
#     issmoke:bool=None
#     height:int=None
#     weight:float=None
#     riskrank:float=None
#
#
#     class Config:
#         orm_mode = True
#         arbitrary_types_allowed = True








